import request from '@/utils/request';

/**
 * 后台导出文件进度查询
 * @name queryRate
 * @param prefix 
 * @param recordId 
 * @returns {} {
    success:boolean,
    data:{
        count:已导出数量,
        finish:是否导入完毕,
        rate:导入进度,
        total:记录总数
        }
    }
 */
export const fetchImportRate = (prefix: string = '', recordId: string) => {
    return request(`${prefix}/com/import/${recordId}/rate`, {
        method: 'get'
    });
};